using System;

namespace ArtSpec
{
    public delegate void Action();
    public delegate void Action<T, K>(T sender, K error);

    public static class Fire
    {
        public static void Event(Action action)
        {
            if (action != null)
                action();
        }

        public static void Event(Action<ISpec> action, ISpec sender)
        {
            if (action != null)
                action(sender);
        }
    }
}